package com.runa.persistence.repository;

import com.runa.persistence.entity.EntitySysDic;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 2022/7/12 16:20
 * zhangYB
 */
@Repository
public interface SysDicRepository extends JpaRepository<EntitySysDic, Integer> {

    EntitySysDic findByCode(String code);
    List<EntitySysDic> findAllByCode(String code);
    List<EntitySysDic> findByCodeIn(List<String> codeList);

    List<EntitySysDic> findAllByCodeAndName(String code, String name);
    List<EntitySysDic> findAllByCodeAndNameAndValue(String code, String name, String value);


}
